#ifndef TASKMONITORWIDGET_H
#define TASKMONITORWIDGET_H

#include <QWidget>
#include <QLineEdit>

#include "treemodel.h"
#include "treeview.h"

class TaskLocator : public QLineEdit
{
    Q_OBJECT
public:
    TaskLocator(TreeModel *model, TreeView *view, QWidget * parent = 0);

    void keyPressEvent(QKeyEvent *e);

    void keyReleaseEvent(QKeyEvent *e);

private:
    TreeModel *m_model;
    TreeView *m_view;
};

class TaskMonitorWidget : public QWidget
{
    Q_OBJECT
public:
    TaskMonitorWidget(QWidget * parent = 0, Qt::WindowFlags f = 0);

private:
    TaskTree m_tasktree;
    TreeModel *m_treemodel;
};

#endif // TASKMONITORWIDGET_H
